<template>
  <header class="header">
    <van-nav-bar
      :title="$route.meta.title"
      left-arrow @click-left="$router.go(-1)"
      @click-right="$router.push({path:'search'})">
      <van-icon name="search" slot="right" />
    </van-nav-bar>
  </header>
</template>

<script>
export default {
  name: 'HeaderBackSearch'
}
</script>

<style lang="scss" scoped>
@import '@/assets/styles/variables.scss';
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  .van-nav-bar {
    background-color: $mainColor;
    i, div {
      color: #fff;
    }
  }
}
</style>
